package com.example.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.entity.MPost;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.vo.PostVo;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author wjh
 * @since 2021-06-06
 */
public interface IMPostService extends IService<MPost> {
    IPage paging(Page page, Long categoryId, Long userId, Integer level, Boolean recommend, String order);


    PostVo selectOnePost(QueryWrapper<MPost> wrapper);

    void initWeekRank();

    void incrCommentCountAndUnionForWeekRank(long postId,boolean isIncr);

    void putViewCount(PostVo vo);
}
